package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbGroupbuCommodityDao;
import com.gtw.modules.entity.TbGroupbuCommodity;
import com.gtw.modules.sys.service.TbGroupbuCommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/15.
 */
@Service
public class TbGroupbuCommodityServiceImpl implements TbGroupbuCommodityService {

    @Autowired
    private TbGroupbuCommodityDao groupbuyUserDao;

    @Override
    public TbGroupbuCommodity queryObject(Integer id){
        return groupbuyUserDao.queryObject(id);
    }

    @Override
    public List<TbGroupbuCommodity> queryList(Map<String, Object> map){
        return groupbuyUserDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return groupbuyUserDao.queryTotal(map);
    }

    @Override
    public void save(TbGroupbuCommodity groupbuyUser){
        groupbuyUserDao.save(groupbuyUser);
    }

    @Override
    public void update(TbGroupbuCommodity groupbuyUser){
        groupbuyUserDao.update(groupbuyUser);
    }

    @Override
    public void delete(Integer id){
        groupbuyUserDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        groupbuyUserDao.deleteBatch(ids);
    }

    @Override
    public List<TbGroupbuCommodity> commondityList(Integer groupbuyid) {
        return null;
    }

    @Override
    public List<TbGroupbuCommodity> queryListOpen(Map<String, Object> map) {
        return groupbuyUserDao.queryListOpen(map);
    }

    @Override
    public int queryTotalOpen(Map<String, Object> map) {
        return groupbuyUserDao.queryTotalOpen(map);
    }
}
